/*
* Copyright(c) 2021 YCHS. All rights Reserved
*/
package com.yckj.web.uol.dao;

import java.util.List;


import com.yckj.web.uol.entity.User;
import org.apache.ibatis.annotations.Param;

/**
*
*
*@author xudingying
*@version 1.0 2021-7-15
*/
public interface UserMapper {
	/**
	 * 添加用户
	 * @param user
	 * @return
	 */
	int insert(User user);
	/**
	 * 删除用户
	 * @param user
	 * @return
	 */
	int delect(User user);
	/**
	 * 更改用户
	 * @param user
	 * @return
	 */
	int update(User user);
	/**
	 * 查询所有用户
	 * @return
	 */
	List<User> selectAll();
	/**
	 * 通过用户名和密码查询
	 */
	User selectByUsernameAndPwd(@Param("username") String username, @Param("passwords") String passwords);


}
